/**
 * Created by wangteng on 2018/9/3.
 */
var updateHighchartOptions = function(tuningOpt, rawOpt) {
      // legend
        if (tuningOpt.legendShow == false) {
            rawOpt.legend.enabled =false;
        } else {
            rawOpt.legend.enabled =true;
            tuningOpt.X ? rawOpt.legend.x = Number(tuningOpt.X) : null;
            tuningOpt.Y ? rawOpt.legend.y = Number(tuningOpt.Y) : null;
            tuningOpt.layout ? rawOpt.legend.layout = tuningOpt.layout : null;
        }
        // options3d
    if(tuningOpt.alpha || tuningOpt.beta || tuningOpt.depth) {
        tuningOpt.alpha ? rawOpt.chart.options3d.alpha = Number(tuningOpt.alpha) : null
        tuningOpt.beta ? rawOpt.chart.options3d.beta = Number(tuningOpt.beta) : null
        tuningOpt.depth ? rawOpt.chart.options3d.depth = Number(tuningOpt.depth) : null
    }
    //color
    if(tuningOpt.color){
            var color = tuningOpt.color.split(',');
          color?rawOpt.colors = color : null

    }

    }

